package modele;

import java.io.IOException;
import java.util.Vector;

public abstract class ModeleLangage {

	public static final int CHAR = 0, INT = 1, STRING = 2, FLOAT = 3, DOUBLE = 4, LONG = 5, SHORT = 6;
	
	protected String langage;
	//format du fichier généré, .java, .h, ...
	protected String format;
	protected Vector<ModeleClasse> listeClasse;
	protected Vector<ModeleRelation> listeRelation;
	
	//lien du squelette
	protected String modeleFichier;
	//lien vers les équivalences de types
	protected String equivalentTypes;
	
	public abstract void genereCode(String urlDestination) throws IOException;
	public String getEquivalentTypes() {
		return equivalentTypes;
	}

	public void setEquivalentTypes(String equivalentTypes) {
		this.equivalentTypes = equivalentTypes;
	}

	public void setLangage(String langage) 
	{
		this.langage = langage;
	}

	public String getLangage() 
	{
		return langage;
	}

	public void setFormat(String format) 
	{
		this.format = format;
	}

	public String getFormat() 
	{
		return format;
	}

	public void setModeleFichier(String modeleFichier) 
	{
		this.modeleFichier = modeleFichier;
	}

	public String getModeleFichier() 
	{
		return modeleFichier;
	}
	
	public void setListeClasse(Vector<ModeleClasse> lc)
	{
		this.listeClasse = lc;
	}
	
	
}
